package com.cluster.platform.mapper;

import com.cluster.platform.model.CmsContentProfile;
import com.cluster.platform.model.CmsContentProfileExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CmsContentProfileMapper {
    long countByExample(CmsContentProfileExample example);

    int deleteByExample(CmsContentProfileExample example);

    int deleteByPrimaryKey(String id);

    int insert(CmsContentProfile record);

    int insertSelective(CmsContentProfile record);

    List<CmsContentProfile> selectByExample(CmsContentProfileExample example);

    CmsContentProfile selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") CmsContentProfile record, @Param("example") CmsContentProfileExample example);

    int updateByExample(@Param("record") CmsContentProfile record, @Param("example") CmsContentProfileExample example);

    int updateByPrimaryKeySelective(CmsContentProfile record);

    int updateByPrimaryKey(CmsContentProfile record);

    // 动态查询
    List<CmsContentProfile> searchContentProfile(CmsContentProfile cmsContentProfile);

    // 批量操作
    int batchContentProfile(@Param("status")int status,@Param("ids")List<String> ids);

    CmsContentProfile searchContentProfileByTitle(@Param("userId")String userId,@Param("title") String title);

    // 物理删除
    int deleteContentProfile(@Param("id")String id);
}